package com.hzit.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


/**
 * 类名：
 * 作者：WF
 * 功能：规格表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_specification")
public class Specification {
	 @Id
	 @GeneratedValue(strategy= GenerationType.IDENTITY)     // 得到添加后的主键值
	 private Long id;

	 @NotBlank(message = "规格名字不能为空！")
	 private String specName;
}
